package cc.verywell.pureblock.net;

import java.nio.ByteBuffer;

import cc.verywell.pureblock.func.FuncProvider;

/**
* Context，Msg是向下暴露的接口，NormalSession是向下暴露的类，其它的尽量都不向外暴露
*  
* Copyright 2019 TanYaqiu
* @author TanYaqiu 
* @address flat 601
* @date 2019年3月7日 下午11:56:38
*/
public interface Msg {
	
	public FuncProvider getFunc(); //用于定位
	public void write(ByteBuffer bb,NormalSession nc);
	default public void failed(Throwable exc, NormalSession nc) {}
	
}
